#apktool回编处理
#echo "请输入工程目录:"
#read plan_dist

#工程目录
plan_dist="/Users/admin/Desktop/12"
#回编命令
apktool b $plan_dist

#-----下面是签名处理------
#密钥口令
keypass="qq123321"
#密钥库密码
storepass="qq123321"
#密钥库全路径
jks="/Users/admin/Documents/apk_key/Android_gaolaoshi.jks"
#alias别名
alias="a"
#apk签名完成存放目录
Success_dist="/Users/admin/Desktop/apk_key/12.apk"
#传入待签名apk路径
apk_dist=$plan_dist"/dist/12.apk"
#签名命令
jarsigner -verbose -keypass $keypass -storepass $storepass -keystore  $jks  -signedjar $Success_dist $apk_dist $alias

#安装到手机 -r 是覆盖安装
adb install -r $Success_dist